﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;

namespace sdamarketing
{
    public partial class Home : osnova1
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Label1.Text = DateTime.Today.Date.ToString().Remove(10);

            
        }

        protected void btnPost_Click(object sender, EventArgs e)
        {
            lblVideo.Text = FreeTextBox2.Text;
        }
/*
        protected void Button1_Click(object sender, EventArgs e)
        {
      //      string text = " ";

            DataSet temp = ReturnDataSet.ReturSet("SELECT dateOfViewing,ChanelId,startMinute,Length FROM Data");
            for (int i = 0; i < temp.Tables["DataSet"].Rows.Count; i++)
            {
                int length = Int32.Parse(temp.Tables["DataSet"].Rows[i].ItemArray[3].ToString());

                for (int j = 1; j < length; j++)
                {
                    DateTime date = DateTime.Parse(temp.Tables["DataSet"].Rows[i].ItemArray[0].ToString());

                    int time = Int32.Parse(temp.Tables["DataSet"].Rows[i].ItemArray[2].ToString()) - 120;

                    int hour = (time + j) / 60;
                    int min = (time + j) % 60;

                    DateTime final = DateTime.Parse(date.ToShortDateString() + " " + hour.ToString() + ":" + min.ToString() + ":00");
                 //   text = text + final.ToString() + " MIN " + min.ToString() + " SAATI " + hour.ToString() +  "  ---NOV---  " + "</br>";


                    FillTheDateTimeTable.fillTable(final, temp.Tables["DataSet"].Rows[i].ItemArray[1].ToString());
                }
            }
      //      Label1.Text = text;

        }
 */ 
    }
}
